package pony.model;

public class CheckMemberId {
	private String[] memberIds = {"Mia", "johnson", "root"};
	private String inputId;
	
	public CheckMemberId() {
		super();
	}
	
	public boolean checkId(String id) {
		inputId = id;
		boolean status = false;
		for(String elements : memberIds) {
			if(status = id.equals(elements)) break;
		}
		return status;
	}
	
	public boolean checkPw(String id, String pw) {
		inputId = id;
		boolean status = false;
		if(id.equals("Mia") && pw.equals("bitch")) {
			return status = true;
		} else if(id.equals("johnson") && pw.equals("jj")) {
			return status = true;
		} else if(id.equals("root") && pw.equals("1234")) {
			return status = true;
		} else return status;
	}
	
	public String getInputId() {
		return inputId;
	}
	
}
